package com.example.petproject.mapper;

import com.example.petproject.entity.model.UmsUser;

public interface UmsUserMapper {
    int deleteByPrimaryKey(Long id);

    int insertSelective(UmsUser record);

    UmsUser selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(UmsUser record);

    /**
     * 根据手机号查询用户信息
     * @param phone
     * @return
     */
    UmsUser selectUserByPhone(String phone);

    /**
     * 根据微信登录响应的openId查询用户信息
     * @param openId
     * @return
     */
    UmsUser selectUserByOpenId(String openId);

}